home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / desktop / apple15.zip / APPLE.TXT < prev    next >
Text File  |  1995-06-09  |  12KB  |  199 lines

  1. APPLE v 1.5, May 1995
  2.  
  3.  
  4. Contents
  5. 1. Overwiev
  6. 2. Installation:
  7. 3. Features:
  8. 4. Built-in commands:
  9. 4.1 Configuring APPLE
  10. 4.2 Command windows
  11. 5. Trash
  12. 6. FAQ
  13.  
  14. 1. Overwiev
  15. This file is not intended to be a manual, but just to read something about the program, because I'm programmer not writer.
  16.  
  17. Apple is a small program, that extends functionality of program manager.  It shows the apple icon which is always on top, so it's instantly accessible. 
  18. To run a program or open a file, you just click on Apple icon and choose the command from the menu or you can make menu command separate window, so that you can double click on it to run program or drag files onto it.  
  19.  
  20. 2. Installation:
  21.  
  22. System requirements:
  23.  - Windows 3.1 or later
  24.  - standard libraries: COMMDLG.DLL and SHELL.DLL
  25.  - 150 K free disk space
  26.  
  27. Just copy files APPLE.EXE and APPLE.WRI to any directory on your hard disk and add them to Program manager with  File|New command. 
  28. I put the program in Startup group so it is invoked automatically, when Windows is started.
  29.  
  30. APPLE is multilingual. Originally, it has built in english and slovene messages, but You can add your own. Just take any resource editor (...Borland's Resource Workshop) and translate the strings with ID-s from 401 to 550 and dialog box templates with ID-s from 900 to 920. Send me a translated copy so that I can include it in the next release.
  31.  
  32. APPLE.INI is created, when APPLE is configured and must reside in Windows directory. 
  33. To use it as Windows shell (instead of Progman), just replace the line "shell=progman.exe" with "shell=apple.exe" in your SYSTEM.INI. Formally, this program cannot completely replace the program manager, because it does not support DDE topics that some software expect (for example: installation programs). If you use it as Windows shell, you should add Program manager (PROGMAN.EXE) to APPLE's menu and run it from there, when any program explicitly wants it. It works just fine except in case mentioned above and eats less resources. 
  34.  
  35. Just try it and you'll love it. I do!
  36.  
  37. 3. Features:
  38. - resource monitor - Click "Special->Resource monitor" to enable/disable tracking current resource status 
  39.  
  40. - supports drag&drop - to add a program or file to Apple menu, just drag it from File manager
  41.  
  42. - you can make it "top window", so that it is instantly accessible
  43.  
  44. - you can make often used menu command separate window, so you can:
  45. - double click on it to run program 
  46. - or drag files onto it to open them
  47. - make it "top window", so that it is instantly accessible
  48. - move it anywhere on the screen
  49. - use special parameters for particular purposes
  50. - change its icon
  51.  
  52. - shows current time in its caption
  53.  
  54. - implements Mac like "Trash"
  55.  
  56. - it's a "memory eater" - needs less than 1% of system resources and 41K main memory
  57.  
  58. 4. Built-in commands:
  59.  
  60.  - Configure command lets you change menu commands, their parameters and groups
  61.  
  62.  - Special->Allways on top: enables/disables topmost-window status
  63.  
  64.  - Special->Resource monitor: enables/disables tracking current resource status 
  65.  
  66.  - Special->Restart windows: shuts down and restarts Windows 
  67.  
  68.  - Special->Exit windows: orderly shuts down Windows. 
  69.  
  70.  - Special->Exit & Reboot: orderly shuts down Windows and reboots the computer. 
  71.  
  72. 4.1 Configuring APPLE
  73. Configure command lets you change menu commands, item names and groups; can have 4 groups of commands, because you need different set of commands when you're programming than when you're drawing pictures or working with a word processor.
  74.  
  75. - list box shows all commands in the selected group
  76.  
  77. - Item name is the name of command as appears in the menu. Menu items are allways sorted alphabetically, but if you want an item be placed before the others, then start its name with non-alphabetic character (for example dot). You can create an access key, if you insert an ampersand (&) before the character to be the access key. If you want the & character to appear in the item name, insert two of them consecutive
  78.  
  79. - Command line is the command itself - can be:
  80. - any program name (the path should be included) with optional parameters
  81. - any file with associated application
  82. - any valid command
  83. If the command is a DOS mode application, you should use the PIF file instead. For example: if you want to run COMMAND.COM, you run PIF editor and specify COMMAND.COM as the program name, set other options then save the file as COMMAND.PIF and add it into APPLE menu, otherwise Windows uses settings in _DEFAULT.PIF.
  84.  
  85. - "Add item" button shows an open file dialog to choose the file to add. You can add an item by dragging it from file manager, too.
  86.  
  87. - "Item is window" check box:
  88.    enables a program window for that command. See below
  89.    - "Allways on top" makes it the topmost window
  90.  
  91. - "run minimized" check box:
  92. runs the program as icon. If the command is a DOS program, its PIF file (or _DEFAULT.PIF) must specify Windowed display usage, otherwise Windows ignores this setting.
  93.  
  94. - "prompt for parameters"
  95. prompts for parameters whenever you run the command
  96.  
  97. - "Language"
  98. change the language for messages and dialogs
  99.  
  100. - Allways on top: 
  101. by default, APPLE is allways on top; it might be annoying when you need the full screen (for example when working with DTP tools), so you can disable this and later reenable it.
  102.  
  103. - Resource monitor: 
  104. if enabled, shows the percent amout and the coloured block, which is the graphical representation of free system resources. It's size is proportional to percent amount and it goes this way:
  105.  - more than 50% : it's green and proportional (means: go ahead, resources at will)
  106.  - 25 - 50%            : it's yellow and proportional 
  107.  - 10 - 25%            : it's magenta and proportional 
  108.  - less than 10%   : red FULL sized - means: PANIC !!!! very low resources
  109.  
  110. - Restart windows: 
  111. this command is useful, if the system becomes unstable or has low resources after a program crash (for example, when you're programming)
  112.  
  113. 4.2 Command windows
  114. In Configure dialog box you can make often used menu command separate window, so you can double click on it to run the program. To close it, just click on it and press <Alt-F4>. It will be reopened the next time you choose Configure command. 
  115. The real power of command windows comes with drag&drop feature. You can drop files from any file manager, if the command is a program and use some special command line parameters:
  116. %1 - inserts full name of dropped file (default)
  117. %2 - inserts file name without path
  118. %3 - inserts full name without extension
  119. %p - inserts prompted parameters, if any
  120. By default, it appends full name of the dropped file and then the prompted parameters.
  121.  
  122. For example: You are browsing files with File manager and there are many text files that have extensions other than .TXT and are not associated with NOTEPAD (or other ascii editor). You can insert NOTEPAD into Apple's menu, make it a window and then drag those files from File manager and drop them onto NOTEPAD program window to view or edit them.
  123.  
  124. Another example:
  125. Item name: MAKEBAK
  126. Command line: COMMAND.PIF /C REN %1 %2.BAK
  127. You make this item a window, check "Run minimized" and with PIFEDIT edit the COMMAND.PIF and specify Windowed display usage. Any file you drop onto the window, will be renamed to file with .BAK extension
  128.  
  129. 5. Trash
  130. Trash is temporary storage for deleted files. When you move files to trash, they aren't actually deleted but hidden for use by other applications. You can later open trash and undelete files or permanently remove them with the "Empty trash" command. Use "Refresh" command if you have trashed files on network or floppy drives.
  131.  
  132. 6. Frequently asked questions
  133. Q: Does APPLE run on Windows NT and Windows '95?
  134. A: Well, it should, but it was not fully tested on NT. NT's 16-bit interface sometimes crashes the system with or without the obvious reason. It happened the first time I ran APPLE on NT and then never again (so where's the bug?!). Also, on NT the resource monitor becomes obsolete. 32-bit version will be released as soon as Borland releases the 32-bit pascal compiler.
  135.     Note on one of Windows'95 bugs:
  136.     When an application creates "owner drawn" menu, it receives two messages prior to displaying the menu:
  137.     - WM_MeasureItem - asks the the window for size of the item
  138.     - WM_DrawItem - creates the window or the rectangular area of specified size and asks the window to draw the item. Here's the bug. The system creates the rectangular area with the default menu height instead of the custom (specified in the previous message). However, this happens only to menu-bar items.
  139.     There would be a workaround for this problem, but it's dirty, so I didn't implement it. 
  140.     It would go this way:
  141.     - draw the menu in the whole area (client and non-client)
  142.     - trap the click in non-client area and see if it is in presumed client area and then handle it
  143.     - maybe some other steps
  144.  
  145. Q: When I have the resource monitor activated, there is a big green blotch covering about half of the gray display rectangle (on the left side) ...
  146. A: It is the graphical representation of free system resources. See above Resource monitor command
  147. Q: Do "program windows" eat system resources?
  148. A: Naturally, but not much
  149. Q: When I activated the window for a command, it happened from time to time that it's icon disappeared
  150. A: It's because APPLE can not find the file to extract icon from (file was deleted or renamed or due to network access conflicts, logoff,...)
  151. Q: When I close the program window with Alt-F4, it reappears the next time I run APPLE, but Trash does not
  152. A: Trash is controlled through the Special->Trash menu command, which is instantly accessible. Program windows closed with Alt-F4 are reopened when you click on Configure command. If you don't want them to reapper, you must uncheck it's "Item is window" option in Configure dialog.
  153. Q: What is the "language combo" in Configure dialog used for?
  154. A: APPLE is multilingual. Originally, it has built in english and slovene messages, but You can add your own. Just take any resource editor (...Borland's Resource Workshop) and translate the strings with ID-s from 401 to 550 and dialog box templates with ID-s from 900 to 920. Send me a translated copy so that I can include it in the next release (and your address, naturally).
  155.  
  156. History:
  157. 1.0:
  158. First version: written in Visual basic. 
  159. I needed about 6 hours to create a full functional program, but:
  160. - it had long load time
  161. - too much memory needed for such a small program
  162. - I could not distribute VBX-es as freeware
  163.  
  164. 1.1
  165. So, I wrote the second version in pascal and compiled with Borland pascal 7.0, but I spent a week for it (at least I was satisfied with it), because it was my first program in pascal for Windows. Functionally the same as version 1.0.
  166.  
  167. 1.2
  168. - Added resource monitor - shows dinamically the amount of free Graphic and User resources
  169. - shell aware - detects, if it is run as shell 
  170. - some users did not like reboot after exiting Windows - added as another command
  171.  
  172. 1.3
  173. - 3D look for dialogs, if CTL3D.DLL present
  174.  
  175. 1.4
  176. - "command windows"
  177.  
  178. 1.5
  179. - "change icon" for command windows
  180. - TRASH command added
  181. - multilingual support
  182.  
  183. This program is free under following conditions: 
  184.  - it is distributed with this document and is not modified in any way (except the custom language resources)
  185.  - no fee is charged for copying and distribution
  186.  
  187. The commercial fee is 15$ per copy.
  188.  
  189. Please report any suggestions or problems to the following address:
  190.  
  191. Cerny Robert, 
  192. QuickTime d.o.o.
  193. Dunajska 116, 
  194. 61000 Ljubljana
  195. SLOVENIA
  196.  
  197. or friend's E-mail: Robert.Prebil@fov.uni-mb.si
  198.